﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICeFramework.Common.DataLayer.Interfaces;

namespace ICeFramework.Business.DataLayer
{
    public interface IEntityObject
    {
        event EntityObjectValidationDelegate ValidationError;

        object Value { get; set; }
        bool IsValid { get; }
        string ErrorMessage { get; set; }
        string ErrorCode { get; set; }
        IEntityColumn Column { get; }
        IEntityRow Row { get; }
        
        bool Validate(object value);
    }
}
